package cn.itsource.hrm.feign.clients;

import cn.itsource.hrm.feign.fallback.SystemEMPFallbackFactory;
import cn.itsource.hrm.util.AjaxResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(value = "hrm-system-server",fallbackFactory = SystemEMPFallbackFactory.class)
public interface SystemEmpControllerClient {

    @RequestMapping(value="/employee/selectUserInfo/{loginId}",method = RequestMethod.GET)
    public AjaxResult selectUserInfo(@PathVariable("loginId") Long loginId);


    }